/**
 * Created by malingling on 15-12-17.
 */
app.controller('ChoosePeopleCtrl',function($scope,$location){
    $.ajaxSettings.async = false;
    $.getJSON('../json/data.json',function(data){
        $scope.people = People.get_person(data);
    })

    $scope.back_to_menu = function(person){
        var persons = new People(person);
        persons.store_name();
        $location.path('menu')
    }
    $scope.back_to_up_page = function (){
        $location.path('menu')
    }
});